﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zielonka.co.uk.extensions.system
{
    /*
        var myDate = DateTime.Now;
        Thread.Sleep(3000);
        Console.WriteLine( myDate.TimeElapsed() );
        result -> 00:00:03
     */

    public static partial class DateTimeExtensions
    {
        public static TimeSpan ElapsedTimeAsTimespan(this DateTime date)
        {
            return DateTime.Now - date;
        }
    }
}
